<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:jsf="http://xmlns.jcp.org/jsf"
                xmlns:f="http://xmlns.jcp.org/jsf/core"
                xmlns:h="http://xmlns.jcp.org/jsf/html"
                xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
                xmlns:p="http://primefaces.org/ui">



    <div class="navbar navbar-blue navbar-static-top">  
        <div class="navbar-header">
            <button class="navbar-toggle" type="button" data-toggle="collapse" data-target=".navbar-collapse">
                <span class="sr-only">Toggle</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>

        </div>
        <nav class="collapse navbar-collapse" role="navigation">
            <h:form>
                <ul class="nav navbar-nav">
                    <li>
                        <p:commandLink update=":panelContent">
                            <f:setPropertyActionListener
                                target="#{navigationController.navigationContent}"
                                value="./pages/home.xhtml" />
                            <i class="glyphicon glyphicon-home"></i> Inicio
                        </p:commandLink>
                    </li>
                </ul>
            </h:form>   
            <!-- MENÚ DEL PERFIL -->
            <h:form>
                <ul class="nav navbar-nav navbar-right" style="padding-right: 10px; margin-right: 10px;">
                    <!-- Menu de usuario -->                                   
                    <li class="dropdown" >
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <i class="glyphicon glyphicon-user"></i>
                            #{loginController.employee.firstName} #{loginController.employee.lastName}
                        </a>
                        <ul class="dropdown-menu">
                            <li><p:commandLink>Perfil</p:commandLink></li>
                            <li><p:commandLink>Cambiar Contraseña</p:commandLink></li>
                            <li><p:commandLink action="#{loginController.logOut()}">Cerrar Sesión</p:commandLink></li>
                        </ul>
                    </li>
                </ul>
            </h:form>
        </nav>
    </div>
    
    
</ui:composition>
